/**
 * Copyright (c) 2012 Tomi Paananen.
 *
 * Part of Quick Gestures user interface.
 */

import QtQuick 1.1
import com.nokia.symbian 1.1

Menu {
    property alias clearEnabled: clearMenuItem.visible
    property alias saveEnabled: saveMenuItem.visible

    signal clearClicked();
    signal loadClicked();
    signal saveClicked();
    signal saveAsClicked();
    signal aboutClicked();

    content: MenuLayout {
        MenuItem {
            id: clearMenuItem
            text: "Clear"
            onClicked: clearClicked();
        }
        MenuItem {
            text: "Load"
            platformSubItemIndicator: true
            onClicked: loadClicked();
        }
        MenuItem {
            id: saveMenuItem
            text: "Save"
            onClicked: saveClicked();
        }
        MenuItem {
            text: "Save as"
            platformSubItemIndicator: true
            visible: clearMenuItem.visible
            onClicked: saveAsClicked();
        }
        MenuItem {
            text: "About"
            platformSubItemIndicator: true
            onClicked: aboutClicked();
        }
    }
}
